Skip to main content

Archive Service

Introduction

Archive Microservice is service from Signing Services collection that organizes such important features as:

  • Core document management functions like:
    • Add new document
    • Update document
    • Remove document
    • Download document
    • Search document
    • Based on configuration / integration settings, the service could provide connection to 3d party DMS systems in order to organize document management there. In a default scenario service is using a local drive for document storage.
    • In order if a storage provider has some issues, archive service in cooperation with a fallback service allows it to work as usual and, in the background, when the storage provider is live again, to process all collected activities that have happened during the unavailability period.

Package content

  • Microservice package location: /DMSS/dmss-archive-services/.
  • Microservice delivery package includes a separate folder for each microservice having the same name as microservice executable .jar file. Each microservice has a configuration application.yml file that should be adjusted to fit client needs. Archive microservice package (folder dmss-archive-services) includes:

Configuration

In YAML configuration whitespace indentation is used for denoting structure. Table below is showing Archive microservice application.yml configuration parameters.

NameDescriptionDefault Value
spring.http.multipart.max-file-sizeFile size that could not be exceeded for http requests.100Mb
spring.http.multipart.max-request-sizeTotal request size that could not be exceeded for http requests.100Mb
spring.servlet.multipart.max-file-sizeFile size that could not be exceeded for servlet.100Mb
spring.servlet.multipart.max-request-sizeTotal request size that could not be exceeded for servlet.100Mb
servlet.portPort that will be used for microservice running.8090
management.security.enabled.Security features.false
authentication.jwt.validationEnable or disable jwt validation.true
authentication.jwt.headerNameJwt header name.true
authentication.jwt.systemCode NameInClaim
authentication.jwt.private
certificate Service.cron
certificate Service.urlCertificate service url.http://localhost:11111/cert
certificate.authentication.basic.username
certificate.authentication.basic.password
log.requestsEnable or disable request logging.false
openTextConfiguration section in case of microservice is connected to OpenText Content Server product.
openText.transformSpec JsonPath
openText.transformSpec JsonPath.categories
openText.transformSpec JsonPath.docBody
openText.baseUrlContent server base url.https://demo.trustlynx.com/otcs/llisapi.dll/api
openText.rootRelativeUrl
openText.rootRelativeUrl.authOTCS auth API./v1/auth
openText.rootRelativeUrl.nodeByNameOTCS get node by name API./v2/nodes/%s/nodes
openText.rootRelativeUrl.nodeByIdOTCS get node by id API./v2/nodes/%s/
openText.rootRelativeUrl.documentOTCS get document API./v2/nodes
openText.rootRelativeUrl.downloadVersionOTCS download document version API./v1/nodes/%s/versions/%s/content
openText.rootRelativeUrl.getVersionsOTCS get document versions API./v2/nodes/%s/version
openText.rootRelativeUrl.getLatest VersionOTCS get last document version API./v1/nodes/%s/versions/latest
openText.rootRelativeUrl.addCategoryPathOTCS add category API./v1/nodes/%s/categories
openText.rootRelativeUrl.updateCategoryPathOTCS update category API./v1/nodes/%s/categories/%s
openText.rootRelativeUrl.addDocument VersionPathOTCS add document version API./v1/nodes/%s/versions
openText.rootRelativeUrl.updateNodeOTCS update node API./v1/nodes/%s
openText.authentication.defaultSystemCode
openText.authentication.basic
openText.authentication.basic.username
openText.authentication.basic.password
openText.authentication.systemAuth Configurations
openText.authentication.systemAuth Configurations.name
openText.authentication.systemAuth Configurations.username
openText.authentication.systemAuth Configurations.password
logging.configLog file configuration xml path.D:/DMSS/dmss-archive-services/logback.xml
logging.level
logging.level.rootLogging level.info / debug / trace
spring.profilesSpring Profiles provide a way to segregate parts of your application configuration and make it only available in certain environments.staging / production

Running

It is recommended to use OpenJDK 11 (typically installed at /usr/lib/jvm/java-11-openjdk) for microservices execution.

Service execution command: java -jar /opt/DMSS/dmss-archive-services/dmss-archive-services.jar --spring.config.location=/opt/DMSS/dmss-archive-services/application.yml

These commands could be organized to run simultaneously as service / task scheduler based on OS and its possibilities (for example for windows – service startup commands could be organized in powershell script running on a system startup, for Linux – background service). The way how these commands are organized for running is decided individually by the solution owner.

Debugging

In section 3 microservice has logging -> config setting that defines path to logback.xml file. This XML file has an appender section that defines location of log files. Example of such section is:

debug_1

In the current example logs are stored inside /opt/DMSS/logs/ folder. To define logging level for specific microservice, open corresponding application.yaml file and change logging -> level -> root setting to info / debug / trace based on needs.

debug_2

External resources

Archive microservice has no special external resource availability requirements. If the service is connected to a 3d party document management system or integrated to an external archive, connection between these systems should be implemented.

Postman collection examples

Archive Microservice documentation package includes POSTMAN collection

Document Changelog

VersionChangesDateChanged By
v1.0.0Initial version of User Manual25.08.2021Mihails Gordijenko